<!--
 * @Author: your name
 * @Date: 2021-06-29 09:14:16
 * @LastEditTime: 2021-06-29 10:26:35
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Briup\Day02\SHENSUO.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

<script> 

function myFunction() {
document.getElementById("demo").innerHTML = "段落已被更改。";
var str="55555555555555555555";
console.log(str);
console.log("%d年%d月%d日",2011,3,26);console.log("圆周率是%f",3.1415926);
}   
</script>
    <style> 
    .section{
        display:flex;
        width:960px;
        height:40px;
        margin-top:0px;
    }
    #ONE{
        flex:1;
        background:#2bc037;
    }
    #TWO{
        flex:2;
        background:#b438d3;
    }
    #THREE
    {
        flex:3;
        background:#df279852;
    }
</style>
</head>
<body>
    
<h2>Head 中的 JavaScript</h2>

<p id="demo">一个段落。</p>

<button type="button" onclick="myFunction()">试一试</button>
    <div class="section">
        <div id="ONE">
            1
        </div>
        <div id="TWO">
            1
        </div>
        <div id="THREE">
            1
        </div>
    </div>
</body>
</html>